package com.big.base.service;

import com.big.base.converter.JobConverter;
import com.big.base.dao.BaseCustomerContactMapper;
import com.big.base.pojo.dto.User;
import com.big.base.pojo.dto.UserDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class BaseCustomerServiceImpl {
    @Autowired
    private BaseCustomerContactMapper baseCustomerContactMapper;

    public User switchState() {
        User user = baseCustomerContactMapper.switchState();
        UserDTO userDTO = JobConverter.INSTANCE.trans(user);
        return user;
    }
}
